Fix #56586
authorHavoc Pennington <hp@pobox.com>
Thu, 4 Oct 2001 06:48:09 +0000 (06:48 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 4 Oct 2001 06:48:09 +0000 (06:48 +0000)
2001-10-04  Havoc Pennington  <hp@pobox.com>

        Fix #56586

* gtk/gtksettings.c (gtk_settings_class_init): move the F10
accelerator setting here...

* gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
because we try to use it when a menu bar hasn't necessarily been
initialized.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/gtk/tmpl/gtkmenu.sgml
gtk/gtkmenubar.c
gtk/gtksettings.c

index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index f901bdd679662f2c4a9b6fd6eb351d57537b7f21..38e40e9bd113065b6e8a2555290c00beddfb2038 100644 (file)
@@ -1,3 +1,14 @@
+2001-10-04  Havoc Pennington  <hp@pobox.com>
+
+        Fix #56586
+       
+       * gtk/gtksettings.c (gtk_settings_class_init): move the F10
+       accelerator setting here...
+
+       * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
+       because we try to use it when a menu bar hasn't necessarily been 
+       initialized.
+
 2001-10-03  Havoc Pennington  <hp@redhat.com>
 
        * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
index b51c366a4b8e9cfdb935d43b88694d40851c99fa..b8f6c879354f39e68fa2b852deeb6fbb9f7d7dc5 100644 (file)
@@ -96,9 +96,9 @@ Creates a new #GtkMenu.
 Adds a new #GtkMenuItem to the end of the menu's item list.
 </para>
 
-<!-- # Unused Parameters # -->
 @menu: a #GtkMenu.
 @child: The #GtkMenuItem to add.
+<!-- # Unused Parameters # -->
 @m: 
 @c: 
 
@@ -108,9 +108,9 @@ Adds a new #GtkMenuItem to the end of the menu's item list.
 Adds a new #GtkMenuItem to the beginning of the menu's item list.
 </para>
 
-<!-- # Unused Parameters # -->
 @menu: a #GtkMenu.
 @child: The #GtkMenuItem to add.
+<!-- # Unused Parameters # -->
 @menu_child: 
 @m: 
 @c: 
@@ -122,10 +122,10 @@ Adds a new #GtkMenuItem to the menu's item list at the position
 indicated by @position. 
 </para>
 
-<!-- # Unused Parameters # -->
 @menu: a #GtkMenu.
 @child: The #GtkMenuItem to add.
 @pos: 
+<!-- # Unused Parameters # -->
 @position: The position in the item list where @child is added.
 Positions are numbered from 0 to n-1.
 
index bf2e27c7f41e7d86db026b78de2020d667e631ef..d38da289628c3c5f63e06408e99634cc96bf6da7 100644 (file)
@@ -142,12 +142,6 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
                                "move_current", 1,
                                GTK_TYPE_MENU_DIRECTION_TYPE,
                                GTK_MENU_DIR_CHILD);
-  
-  gtk_settings_install_property (g_param_spec_string ("gtk-menu-bar-accel",
-                                                      _("Menu bar accelerator"),
-                                                      _("Keybinding to activate the menu bar"),
-                                                      "F10",
-                                                      G_PARAM_READWRITE));
 
   gtk_widget_class_install_style_property (widget_class,
                                           g_param_spec_enum ("shadow_type",
index 21cd49ffc899e44bdbaf0bf8ebaf566b38b16055..bd666813de36a5ea893f3bd765329bcce2e20a98 100644 (file)
@@ -28,7 +28,8 @@ enum {
   PROP_CURSOR_BLINK_TIME,
   PROP_SPLIT_CURSOR,
   PROP_THEME_NAME,
-  PROP_KEY_THEME_NAME
+  PROP_KEY_THEME_NAME,
+  PROP_MENU_BAR_ACCEL
 };
 
 
@@ -187,7 +188,17 @@ gtk_settings_class_init (GtkSettingsClass *class)
                                                                  NULL,
                                                                  G_PARAM_READWRITE),
                                              NULL);
-  g_assert (result == PROP_KEY_THEME_NAME);
+  g_assert (result == PROP_KEY_THEME_NAME);    
+
+  result = settings_install_property_parser (class,
+                                             g_param_spec_string ("gtk-menu-bar-accel",
+                                                                  _("Menu bar accelerator"),
+                                                                  _("Keybinding to activate the menu bar"),
+                                                                  "F10",
+                                                                  G_PARAM_READWRITE),
+                                             NULL);
+
+  g_assert (result == PROP_MENU_BAR_ACCEL);
 }
 
 static void